/*
 *  $Id: MystShadows.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008-2009 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Spells {
    public class MystShadows: SelfEnchantmentCard {
        public MystShadows(): base("001_w_s_myst_shadows") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Water;
            Value = 100;
            AddManaCost(ElementType.Water, 2);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new MystShadowsAffect();
        }

        private class MystShadowsAffect: EnchantmentAffect<MystShadows> {
            public MystShadowsAffect() {
                Add(new MystShadowsAura());
            }
        }

        private class MystShadowsAura: CreatureAuraAffect {
            public MystShadowsAura(): base(false, true) {}

            public override string Id {
                get { return AffectManager.GetCardId<MystShadows>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new MystShadowsAuraAffect();
            }
        }

        private class MystShadowsAuraAffect: SpellAffect<MystShadows> {
            public MystShadowsAuraAffect() {
                DefaultDescription = true;
                Add(new Affects.ModDamage(-1));
            }
        }
    }
}
